# -*- coding: utf-8 -*-
"""
省管干部提取模块，处理省管干部姓名的提取
"""

from .sggb import extract_provincial_cadres


async def extract_sggb_names(case_content: str) -> str:
    """提取省管干部姓名"""
    try:
        result = extract_provincial_cadres(case_content)
        sggb_result = result.get("result", "")
        print(f"省管干部姓名提取结果: {sggb_result}")
        return sggb_result
    except Exception as e:
        print(f"提取省管干部姓名失败: {str(e)}")
        return ""
